package com.nycreativity.elecreativity.entity.param.user

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import javax.validation.constraints.NotBlank

@ApiModel("用户添加参数")
class UserAddParam(

        @field:NotBlank
        @ApiModelProperty("手机验证码")
        var code: String? = null,

        @field:NotBlank
        @ApiModelProperty("电话")
        var phoneNum: String? = null,

        @field:NotBlank
        @ApiModelProperty("密码")
        var password: String? = null,

        @field:NotBlank
        @ApiModelProperty("称谓")
        var title: String? = null,

        @field:NotBlank
        @ApiModelProperty("用户名")
        var name: String? = null,

        //====上面是用户信息，下面是地址信息====

        @field:NotBlank
        @ApiModelProperty("国家")
        var country: String? = null,

        @field:NotBlank
        @ApiModelProperty("省份")
        var province: String? = null,

        @field:NotBlank
        @ApiModelProperty("城市")
        var city: String? = null,

        @field:NotBlank
        @ApiModelProperty("县区")
        var district: String? = null,

        @field:NotBlank
        @ApiModelProperty("详细地址")
        var detailAddress: String? = null
)